package com.jz.community.basecomm.utils.intentUtils;

import android.os.Bundle;

import com.jz.community.basecomm.routerUtils.RouterCommonUtils;
import com.jz.community.basecomm.routerUtils.RouterIntentConstant;

/**
 * Created by Target on 2018/4/5.
 */
public class OrderIntentUtils {

    /**
     * 跳转确认订单
     *
     * @param jsonOrderInfo
     */
    public static void startFromOrderActivity(String jsonOrderInfo) {
        Bundle bundle = new Bundle();
        bundle.putString("jsonOrderInfo", jsonOrderInfo);
        RouterCommonUtils.startParamsActivity(RouterIntentConstant.MODULE_SHOPPING_CONFIRM_ORDER, bundle);
    }

    /**
     * 跳转确认订单
     * @param jsonOrderInfo
     * @param orderFrom 订单来源
     */
    public static void startFromOrderActivity(String jsonOrderInfo, int orderFrom) {
        Bundle bundle = new Bundle();
        bundle.putString("jsonOrderInfo", jsonOrderInfo);
        bundle.putInt("orderFrom", orderFrom);
        RouterCommonUtils.startParamsActivity(RouterIntentConstant.MODULE_SHOPPING_CONFIRM_ORDER, bundle);
    }
}
